home *** CD-ROM | disk | FTP | other *** search
- on drawCurvedline OrbitObjSpriteNum, startpoint, endPoint, mySeasonsAnim
- set epicenter to (startpoint + endPoint) * 0.5
- set Xr to abs(getAt((startpoint - endPoint) / 2, 2))
- set Yr to 80
- set howmany to 15
- repeat with thisUpdate = 1 to howmany
- set percentDone to thisUpdate / (howmany + 0.0)
- set startPointA to startpoint * (1.00009999999999999 - percentDone)
- set endPointA to endPoint * percentDone
- set relativeCenter to startPointA + endPointA
- set radians to thisUpdate / (howmany + 0.0) * 2.0
- set XpercentOffset to 0
- set YpercentOffset to sin(PI / 2.0 * radians)
- if thisUpdate = 7 then
- set PuppetFlag to 1
- set the loc of sprite getaProp(getaProp(gObjects, #slotTop), #SpriteNum) to getaProp(getaProp(gObjects, #slotTop), #onloc)
- set mySeasonsAnim to 17
- set the castNum of sprite mySeasonsAnim to the castNum of sprite getaProp(getaProp(gObjects, #SeasonsAnim), #SpriteNum)
- set the loc of sprite mySeasonsAnim to getaProp(getaProp(gObjects, #SeasonsAnim), #loc)
- set the ink of sprite mySeasonsAnim to 0
- updateStage()
- end if
- set Xloc to getAt(relativeCenter, 1) - (XpercentOffset * Xr)
- set Yloc to getAt(relativeCenter, 2) + (YpercentOffset * Yr)
- set the loc of sprite OrbitObjSpriteNum to point(Xloc, Yloc)
- updateStage()
- end repeat
- end
-
- on drawLine OrbitObjSpriteNum, startpoint, endPoint
- set howmany to 10
- repeat with thisUpdate = 1 to howmany
- set percentDone to thisUpdate / (howmany + 0.0)
- set startPointA to startpoint * (1.00009999999999999 - percentDone)
- set endPointA to endPoint * percentDone
- set relativeCenter to startPointA + endPointA
- set Yloc to getAt(relativeCenter, 2)
- set Xloc to getAt(relativeCenter, 1)
- set the loc of sprite OrbitObjSpriteNum to point(Xloc, Yloc)
- updateStage()
- end repeat
- end
-